package cn.ld.fj.entity;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;

/**
 * Created by lixiangjun on 2017/8/1.
 */

@Entity
@Table(name = "ES_DESK_ORDER_INFO")
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
public class DeskShopOrderInfo extends IdEntity {

    private Long deskShopId;

    private Date createDate;

    private Date orderTime;  //预定时间


    private String extra; //备注


    private int dnumber;


    public String getExtra() {
        return extra;
    }

    public void setExtra(String extra) {
        this.extra = extra;
    }

    @Transient
    public int getDnumber() {
        return dnumber;
    }

    public void setDnumber(int dnumber) {
        this.dnumber = dnumber;
    }

    public Long getDeskShopId() {
        return deskShopId;
    }

    public void setDeskShopId(Long deskShopId) {
        this.deskShopId = deskShopId;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }
}
